package Operator;
/**
 * @author : niu niu
 * @version : 1.0.0
 * @date : 2022/8/17 10:54
 */
public class MathOperator {
    public static void main(String[] args) {
        int a =20 ;
        int b =10;
        System.out.println(a+b);
        System.out.println(a-b);
        System.out.println(a*b);
        System.out.println(a/b);
        System.out.println(a%b);
        // 取模运算相当于数学中的取余运算(分母不为0)
        int c = 10;
        int d = 0;
        //System.out.println(c/ d);
        // System.out.println(c % d);
    }
}
